﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Data;

namespace Fjaspx.Sys.Bll
{
    public class Fjaspx_Channel
    {
        private Fjaspx.Sys.Dal.Fjaspx_Channel dal = new Fjaspx.Sys.Dal.Fjaspx_Channel();

        public Fjaspx_Channel()
        { }
        #region  成员方法

        /// <summary>
        /// 得到最大ID
        /// </summary>
        public int GetMaxId()
        {
            return dal.GetMaxId();
        }

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(int OrderId)
        {

            return dal.Exists(OrderId);
        }


        /// <summary>
        /// 增加一条数据
        /// </summary>
        public void Add(Model.Fjaspx_Channel model)
        {
            dal.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public void Update(Model.Fjaspx_Channel model)
        {
            dal.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(int OrderId)
        {
            dal.Delete(OrderId);
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.Fjaspx_Channel GetModel(int OrderId)
        {
            return dal.GetModel(OrderId);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }
        #endregion  成员方法
    }
}
